import api from '../index.js'  //引入就可以调用api.get等方法
export const wyy = (params) => {
	const url = `/vapi/orderDept/JdText?pageNum=${params.pageNum}&pageSize=${params.pageSize}`
	 return api.post(url, params)
}
export const wyy2 = (params) => {
	const url = `/vapi/orderDept/DeptList`
	 return api.post(url, params)
}
export const stateJs = (params) => {
	const url = `/vapi/orderDept/StateList`
	 return api.post(url, params)
}
// 导出矿业列表
export const getExport = (params) => {
	let url = '/vapi/orderDept/JdTextOut'
	if (params) {
		url = url + '?'
		for (const key in params) {
			url = url + key + '=' + params[key] + '&'
		}
		url = url.substring(0, url.length - 1)
	}
	return api.postDownload(url, params)
}